package com.woniu.user.service;

import com.woniu.user.infra.model.UserAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.user.service.dto.UserInfoDto;
import com.woniu.user.service.param.RegisterServiceParam;
import com.woniu.user.service.param.UpdateUserInfoServiceParam;

import java.net.UnknownHostException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
public interface UserAccountService extends IService<UserAccount> {
    //登录
    public String login(String userPhone, String password) throws UnknownHostException;
    //注册
    public boolean register(RegisterServiceParam registerServiceParam);
    //发送验证码
    public boolean sendCode(String phone);
    //完善信息
    public UserInfoDto updateInfo(UpdateUserInfoServiceParam updateUserInfoServiceParam);
    //查看用户信息
    public UserInfoDto getUserInfo(Integer userId);


}
